<div class="form-group">
	<label class="col-sm-2 control-label"><i class="red_req">*</i>业务产品名称：</label>
	<div class="col-sm-2">
		<input type="text" class="form-control" ng-model="baseInfo.bpName" name="bpName"  required>
		<div class="req_mesg" ng-show="horizontal.bpName.$dirty && horizontal.bpName.$invalid">
			<span ng-show="horizontal.bpName.$error.required">业务产品名称不能为空</span>
		</div>
	</div>
	<label class="col-sm-2 control-label"><i class="red_req">*</i>代理商展示名称：</label>
	<div class="col-sm-2">
		<input type="text" class="form-control" ng-model="baseInfo.agentShowName" name="agentShowName"  required>
		<div class="req_mesg" ng-show="horizontal.agentShowName.$dirty && horizontal.agentShowName.$invalid">
			<span ng-show="horizontal.agentShowName.$error.required">代理商展示名称不能为空</span>
		</div>
	</div>
	<label class="col-sm-2 control-label"></label>
	<div class="col-sm-2">
		<label><input type="checkbox" ng-model='baseInfo.relyHardware'  ng-true-value="1" ng-false-value="0"/>
			<span class=""><i class="red_req">*</i>依赖硬件</span>
		</lable>
	</div>
</div>
<div class="form-group">
	<label class="col-sm-2 control-label"><i class="red_req">*</i>类型：</label>
	<div class="col-sm-2">
		<select class="form-control" ng-model='baseInfo.bpType' ng-options="x.value as x.text for x in type"  >
		</select>
	</div>
	
	<label class="col-sm-2 control-label"></label>
	<div class="col-sm-2">
		<label><input type="checkbox" ng-model='baseInfo.notCheck'  ng-true-value="'1'" ng-false-value="'0'"/><span class="">证件资料完整时无需人工审核</span></lable>
	</div>
	<div class="col-sm-2">
		<label><input type="checkbox" ng-model='baseInfo.allowWebItem'  ng-true-value="1" ng-false-value="0"/><span class="">允许在web端进件</span></lable>
	</div>
	<div class="col-sm-2">
		<label><input type="checkbox" ng-model='baseInfo.allowIndividualApply'  ng-true-value="1" ng-false-value="0"/><span class="">允许单独申请</span></lable><!--<span class="req_mesg">(此属性暂未生效) </span>-->
	</div>
</div>
<div class="form-group">
	<label class="col-sm-2 control-label"><i class="red_req">*</i>可销售日期：</label>
	<div class="col-sm-3">
		<input type="datetime" class="form-control" name="saleStarttime" date-time view="date"  min-view="date" format="YYYY-MM-DD" ng-model="baseInfo.saleStarttime" required
		 >
		 <div class="req_mesg" ng-show="horizontal.saleStarttime.$dirty && horizontal.saleStarttime.$invalid">
			<span ng-show="horizontal.saleStarttime.$error.required">销售日期不能为空</span>
		</div>
	</div>
	<label class="control-label" style="float: left">~</label>
	<div class="col-sm-3">
		<input type="datetime" class="form-control" name="saleEndtime" date-time view="date"  min-view="date" format="YYYY-MM-DD" ng-model="baseInfo.saleEndtime" required
		>
		<div class="req_mesg" ng-show="horizontal.saleEndtime.$dirty && horizontal.saleEndtime.$invalid">
			<span ng-show="horizontal.saleEndtime.$error.required">销售日期不能为空</span>
		</div>
	</div>
</div>
<div class="form-group">
	<label class="col-sm-2 control-label"><i class="red_req">*</i>可否代理：</label>
	<div class="col-sm-2">
		<select class="form-control" ng-change="couldAgent()" ng-model="baseInfo.proxy" ng-options="x.value as x.text for x in bool"  >
		</select>
	</div>
</div>
<!-- <select class="form-control" ng-model="baseInfo.ownBpId" ng-options="x.value as x.text for x in products"  >
		</select> -->
<div class="form-group">
	<label class="col-sm-2 control-label"><i class="red_req">*</i>所属组织：</label>
	 <div class="col-sm-2">
	<select class="form-control" ng-model="baseInfo.teamId" ng-disabled="baseInfo.proxy=='0'" ng-change="changeTeam()" ng-options="x.value as x.text for x in team" required  >
		</select>
	</div> 
	<label class="col-sm-2 control-label" ng-hide="baseInfo.relyHardware == 0">自动开通关联业务产品：</label>
	 <div class="col-sm-2">
	<select class="form-control"  ng-hide="baseInfo.relyHardware == 0" ng-model="baseInfo.linkProduct" ng-options="x.bpId as x.bpName for x in products" >
		</select>
	</div>
	<div ng-hide="baseInfo.teamId=='100010'">
		<label class="col-sm-2 control-label">关联自营业务产品：</label>
		<div class="col-sm-2">
			<select chosen="{width:'100%'}"  class="chosen-select" tabindex="4" ng-model="baseInfo.ownBpId" ng-options="x.value as x.text for x in otherProducts">
				<option value=""></option>
			</select>
		</div>
	</div>
</div>
<!-- <div class="form-group">
	<label class="col-sm-2 control-label">二维码：</label>
	<div class="col-sm-4">
		<input type="file" nv-file-select="" uploader="uploaderTwo"  multiple />
		<div ng-hide="twoCodeHide">
			<input type="button" class="btn btn-primary btn-primary2" type="button" ng-click='removeTwoCode()' value="清除二维码" />
			<br>
			<img alt="" ng-src="{{baseInfo.twoCodeUrl}}" style="width: 198px;height: 100px">
		</div>
		<table class="table">
                     <tbody>
                         <tr ng-repeat="item in uploaderTwo.queue">
                             <td>
                                 <strong>{{ item.file.name }}</strong>
                                 <div ng-show="uploaderTwo.isHTML5" ng-thumb="{ file: item._file, height: 100 }"></div>
                             </td>
                             <td ng-show="uploaderTwo.isHTML5" nowrap>{{ item.file.size/1024/1024|number:2 }} MB</td>
                             <td ng-show="uploaderTwo.isHTML5">
                                 <div class="progress" style="margin-bottom: 0;">
                                     <div class="progress-bar" role="progressbar" ng-style="{ 'width': item.progress + '%' }"></div>
                                 </div>
                             </td>
                             <td class="text-center">
                                 <span ng-show="item.isSuccess"><i class="glyphicon glyphicon-ok"></i></span>
                                 <span ng-show="item.isCancel"><i class="glyphicon glyphicon-ban-circle"></i></span>
                                 <span ng-show="item.isError"><i class="glyphicon glyphicon-remove"></i></span>
                             </td>
                             <td nowrap>
                                 <button type="button" class="btn btn-success btn-xs" ng-click="item.upload()" ng-disabled="item.isReady || item.isUploading || item.isSuccess">
                                     <span class="glyphicon glyphicon-upload"></span> Upload
                                 </button>
                                 <button type="button" class="btn btn-warning btn-xs" ng-click="item.cancel()" ng-disabled="!item.isUploading">
                                     <span class="glyphicon glyphicon-ban-circle"></span> Cancel
                                 </button>
                                 <button type="button" class="btn btn-danger btn-xs" ng-click="item.remove()">
                                     <span class="glyphicon glyphicon-trash"></span> Remove
                                 </button>
                             </td>
                         </tr>
                     </tbody>
                 </table>
	</div>
</div> -->
<div class="form-group">
	<label class="col-sm-2 control-label">关联硬件产品：</label>
	<div class="col-sm-4">
		<select class="form-control" ng-model="baseInfo.limitHard" ng-options="x.value as x.text for x in isLimitHard" >
		</select>
	</div>	
</div>	
<div class="form-group">
	<div class="col-sm-2"/>	
	<div class="col-sm-4" ng-show="baseInfo.limitHard=='1'">
		<div  class="gridStyle" ui-grid="hardsGrid" ui-grid-selection ui-grid-resize-columns class="grid"></div>
	</div>	
</div>
<div class="form-group">
	<label class="col-sm-2 control-label">业务产品简介：</label>
	<div class="col-sm-8">
		<textarea rows="5" cols="20" class="form-control" ng-model="baseInfo.remark"></textarea>
	</div>
</div>
<div class="form-group">
	<label class="col-sm-2 control-label">宣传图片：</label>
	<div class="col-sm-4">
		 <input type="file" nv-file-select="" uploader="uploaderImg" multiple />
		<span style="margin: 3px;color: silver;"><br>(注意:仅支持格式为png、jpg的图片)</span>
		 <div ng-hide="bpImgHide">
		 	<input type="button" class="btn btn-primary btn-primary2" type="button" ng-click='removeImg()' value="清除宣传图片" />
		 	<br>
		 	<img alt="" ng-src="{{baseInfo.bpImgUrl}}" style="width: 198px;height: 100px">
		 </div>
		<table class="table">
                     <tbody>
                         <tr ng-repeat="item in uploaderImg.queue">
                             <td>
                                 <strong>{{ item.file.name }}</strong>
                                 <div ng-show="uploaderImg.isHTML5" ng-thumb="{ file: item._file, height: 100 }"></div>
                             </td>
                             <td ng-show="uploaderImg.isHTML5" nowrap>{{ item.file.size/1024/1024|number:2 }} MB</td>
                             <td ng-show="uploaderImg.isHTML5">
                                 <div class="progress" style="margin-bottom: 0;">
                                     <div class="progress-bar" role="progressbar" ng-style="{ 'width': item.progress + '%' }"></div>
                                 </div>
                             </td>
                             <td class="text-center">
                                 <span ng-show="item.isSuccess"><i class="glyphicon glyphicon-ok"></i></span>
                                 <span ng-show="item.isCancel"><i class="glyphicon glyphicon-ban-circle"></i></span>
                                 <span ng-show="item.isError"><i class="glyphicon glyphicon-remove"></i></span>
                             </td>
                             <td nowrap>
                                <!--  <button type="button" class="btn btn-success btn-xs" ng-click="item.upload()" ng-disabled="item.isReady || item.isUploading || item.isSuccess">
                                     <span class="glyphicon glyphicon-upload"></span> Upload
                                 </button>
                                 <button type="button" class="btn btn-warning btn-xs" ng-click="item.cancel()" ng-disabled="!item.isUploading">
                                     <span class="glyphicon glyphicon-ban-circle"></span> Cancel
                                 </button> -->
                                 <button type="button" class="btn btn-danger btn-xs" ng-click="item.remove()">
                                     <span class="glyphicon glyphicon-trash"></span> Remove
                                 </button>
                             </td>
                         </tr>
                     </tbody>
                 </table>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">业务产品介绍链接：</label>
				<div class="col-sm-8">
					<input type="text" class="form-control" ng-model="baseInfo.link" name="link" />
				</div>
			</div>